<?php
/**
 * description
 *
 * @category   Module name
 * @package    PSR
 * @subpackage Documentation\API
 * @author     weiyizheng
 * @date       2022/12/6
 * @time       4:17 下午
 */


use Illuminate\Routing\Router;

Route::group([
	'prefix' => 'admin/RedisSetting',
	'namespace' => 'Buu\\Modules\\RedisSetting\\Controllers',
	'middleware' => [
		'web',
		'admin'
	],
], function (Router $router) {
	// redis实例
	$router->resource('redis-instance', RedisInstanceController::class);

	// key配置
	$router->resource('redis-bus-line', RedisBusLineController::class);

	$router->get('redis-key', RedisKeySettingController::class . "@index");
	$router->get('redis-key/create', RedisKeySettingController::class . "@create");
	$router->post('redis-key/save', RedisKeySettingController::class . "@save");
	$router->post('redis-key/delete', RedisKeySettingController::class . "@delete");
	$router->resource('redis-key', RedisKeySettingController::class);
});